﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>菜单</title>
    <link href="~/Content/css/style.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
        $(function () {
            loadPersion();
            //导航切换
            $(".menuson li").click(function () {
                $(".menuson li.active").removeClass("active")
                $(this).addClass("active");
            });
            $('.title').click(function () {
                var $ul = $(this).next('ul');
                $('dd').find('ul').hide();
                if ($ul.is(':visible')) {
                    $(this).next('ul').hide();
                } else {
                    $(this).next('ul').show();
                }
            });
        });
        //权限加载
        function loadPersion() {
            var re = new RegExp("&quot;", "g");
            var p = eval('@ViewData["permissions"]'.replace(re, "'"));
            //$(".leftmenu").find("li").hide();
            for (var i = 0; i < p.length; i++) {
                var curP = $("[id='A"+p[i].Id+"']");
                if (curP != undefined) {
                    curP.show();
                    curP.attr("has", "has");
                }
            }
            $(".menuson").each(function () {
                var tmp = $(this).find("li[has=has]");
                if (tmp.length == 0) {
                    $(this).parent().hide();
                }
            });
        }
    </script>
</head>
<body style="background:#f0f9fd;">
    <div class="lefttop"><span></span>工作台</div>
    <dl class="leftmenu">
        <dd>
            <div class="title">
                <span>
                    <img src="~/Content/images/leftico02.png" />
                </span>个人办公
            </div>
            <ul class="menuson">
                <li id="A6"><cite></cite><a href="@Url.Action("Todo", "UseCarApplication")" target="rightFrame">我的待办<i id="todocount" style="color:#fff; border-radius:50%; display:inline-block; padding:0px 3px; font-style:normal; text-align:center; height:13px; line-height:13px; font-size:9px; margin-left:5px; position:relative; top:1px; background:red;">0</i></a><i></i></li>
                <li id="A6"><cite></cite><a href="@Url.Action("UseCar", "CarInfo")" target="rightFrame">我要用车</a><i></i></li>
                <li id="A6"><cite></cite><a href="@Url.Action("Index", "UseCarApplication")" target="rightFrame">我的申请</a><i></i></li>
                <li id="A6"><cite></cite><a href="@Url.Action("Done", "UseCarApplication")" target="rightFrame">我的已办</a><i></i></li>
                
            </ul>
        </dd>
        <dd>
            <div class="title">
                <span>
                    <img src="~/Content/images/leftico03.png" />
                </span>基本信息管理
            </div>
            <ul class="menuson">
                <li id="A1"><cite></cite><a href="@Url.Action("Index", "BaseItem")" target="rightFrame">基本信息</a><i></i></li>
                <li id="A2"><cite></cite><a href="@Url.Action("Index", "ShendMessages")" target="rightFrame">消息推送</a><i></i></li>
            </ul>
        </dd>
        <dd>
            <div class="title">
                <span>
                    <img src="~/Content/images/leftico01.png" />
                </span>车辆管理
            </div>
            <ul class="menuson">
                <li id="A1"><cite></cite><a href="@Url.Action("Index","CarInfo")" target="rightFrame">基本信息</a><i></i></li>
                <li id="A2"><cite></cite><a href="@Url.Action("Index","SendCar")" target="rightFrame">派车管理<i id="carusercount" style="color:#fff; border-radius:50%; display:inline-block; padding:0px 3px; font-style:normal; text-align:center; height:13px; line-height:13px; font-size:9px; margin-left:5px; position:relative; top:1px; background:red;">0</i></a><i></i></li>
                <li id="A3"><cite></cite><a href="@Url.Action("SendCarRecord", "SendCar")" target="rightFrame">派车纪录</a><i></i></li>
                <li id="A3"><cite></cite><a href="@Url.Action("Index", "CarScrap")" target="rightFrame">车辆报废</a><i></i></li>
                <li id="A3"><cite></cite><a href="@Url.Action("Index", "CarAudit")" target="rightFrame">车辆审核</a><i></i></li>
                <li id="A3"><cite></cite><a href="@Url.Action("Index", "CarInsurance")" target="rightFrame">车辆保险</a><i></i></li>
                <li id="A3"><cite></cite><a href="@Url.Action("Index", "CheckType")" target="rightFrame">检查登记</a><i></i></li>
                <li id="A3"><cite></cite><a href="@Url.Action("Index", "Train")" target="rightFrame">培训学习</a><i></i></li>
                <li id="A3"><cite></cite><a href="@Url.Action("Index", "DriverCertificate")" target="rightFrame">证书管理</a><i></i></li>
            </ul>
        </dd>
        <dd>
            <div class="title">
                <span><img src="~/Content/images/leftico04.png" /></span>报表中心
            </div>
            <ul class="menuson">
                <li id="A7"><cite></cite><a href="@Url.Action("CarUserCount", "Report")" target="rightFrame">车辆使用统计</a><i></i></li>
                <li id="A7"><cite></cite><a href="@Url.Action("CarUseApp", "Report")" target="rightFrame">申请用车记录</a><i></i></li>
                <li id="A8"><cite></cite><a href="@Url.Action("CommReport", "Report")?tag=1" target="rightFrame">车辆违章统计</a><i></i></li>
                <li id="A10"><cite></cite><a href="@Url.Action("CommReport", "Report")?tag=2" target="rightFrame">车辆保养统计</a><i></i></li>
                <li id="A11"><cite></cite><a href="@Url.Action("CommReport", "Report")?tag=3" target="rightFrame">车辆事故统计</a><i></i></li>
                <li id="A12"><cite></cite><a href="@Url.Action("CommReport", "Report")?tag=4" target="rightFrame">车辆加油统计</a><i></i></li>
                <li id="A13"><cite></cite><a href="@Url.Action("CommReport", "Report")?tag=5" target="rightFrame">车辆维修统计</a><i></i></li>
                <li id="A13"><cite></cite><a href="@Url.Action("CommReport", "Report")?tag=6" target="rightFrame">车辆保险统计</a><i></i></li>
                <li id="A33"><cite></cite><a href="@Url.Action("CommReport", "Report")?tag=7" target="rightFrame">保险申请统计</a><i></i></li>
                <li id="A33"><cite></cite><a href="@Url.Action("DriverReportData", "Report")" target="rightFrame">按驾驶员统计</a><i></i></li>
            </ul>
        </dd>
    </dl>
</body>
</html>
